package com.example.dao;



import com.example.domain.Record;
import com.example.domain.Record2;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface RecordMapper2 {

    List<Record2> listAll(int patient_id);

    List<Record2> listAll(Map map);


    int insert(Record2 record2);

    int update(Record2 record2);

    Record2 getById(int id);

    int delete(int id);


//    int update(Record medication);

}
